package org.hughie.batch;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author hughie.cheng
 * @date 2024/3/7
 */
@Configuration
public class MVirtualThreadConfiguration {

    @Bean
    public ExecutorService syncThreadExecutor() {
        return Executors.newVirtualThreadPerTaskExecutor();
    }

}
